package com.magicalcoder.ioc;

import com.magicalcoder.pigeon.ioc.anotation.Resource;
import com.magicalcoder.pigeon.ioc.anotation.Service;

/**
 * Created by hzhedongyu on 2017/6/12.
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource("nameService")
    private NameService nameService;

    @Override
    public String user() {
        return "user"+nameService.name();
    }
}
